package com.leyou.user.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_user_info")
@Data
public class UserInfo {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;
    @Column(name = "nickname")
    private String nickName;
    @Length(max = 1,message = "性别格式输入错误")
    private String gender;
    private String birthday;
    private String address;
    @Column(name = "user_id")
    private Long userId;
    private String job;
    private String image;
}
